$progress-undone-color: #eceef2;
$progress-done-color: #72d897;

.index-tab {
  background: #f6f7f9;
  padding: 16px;
  .no-data {
    background: #ffffff;
    box-shadow: 0px 0px 24px -10px #dbdee6;
    border-radius: 8px;
    padding: 40px 122px 25px;
    text-align: center;
    margin-top: 8px;
    .no-data-img {
      width: 100px;
      height: 100px;
    }
    .no-data-text {
      font-size: 12px;
      color: #8a909f;
      line-height: 17px;
    }
  }
  .card {
    background: #ffffff;
    padding: 24px 16px;
    margin-top: 8px;
    box-shadow: 0px 0px 24px -10px #dbdee6;
    border-radius: 8px;
  }
  .base-info {
    margin-bottom: 16px;
    .info-line {
      display: flex;
      align-items: center;
      margin-top: 24px;
      .left {
        flex: 2;
        display: flex;
        align-items: center;
        > span {
          //   height: 16px;
          //   width: 16px;
          margin-right: 8px;
        }
        height: 20px;
        font-size: 14px;
        font-weight: 400;
        color: #8a909f;
        line-height: 20px;
      }
      .right {
        flex: 3;
        height: 20px;
        font-size: 14px;
        font-weight: 400;
        color: #262626;
      }
    }
    .info-line:first-child {
      margin-top: 0;
    }
  }
  .statistics {
    margin-bottom: 16px;
    .line1 {
      display: flex;
      padding: 12px 20px;
      justify-content: space-between;
      background: rgba(57, 114, 249, 0.05);
      .left {
        .name {
          > span {
            // width: 16px;
            // height: 18px;
            margin-right: 4px;
          }
          margin-left: 4px;
          display: flex;
          align-items: center;
          height: 20px;
          font-size: 14px;
          font-weight: 400;
          color: #4d525c;
          line-height: 20px;
        }
        .value {
          font-size: 22px;
          font-family: PingFangSC-Semibold, PingFang SC;
          font-weight: 600;
          color: #262626;
          display: flex;
          justify-content: center;
          line-height: 34px;
        }
      }
    }
    .line2 {
      margin-top: 16px;
      display: flex;
      justify-content: space-between;
      height: 84px;
      .left,
      .right {
        background: rgba(57, 114, 249, 0.05);
        flex: 1;
        border-radius: 8px;
        padding: 12px 0;
      }
      .right {
        margin-left: 12px;
      }
      .left .name,
      .right .name {
        > span {
          //   width: 16px;
          height: 23px;
          margin-right: 4px;
        }

        justify-content: center;
        display: flex;
        align-items: center;
        display: flex;
        font-size: 14px;
        color: #4d525c;
      }
      .value {
        display: flex;
        justify-content: center;
        font-family: PingFangSC-Medium, PingFang SC;
        font-size: 22px;
        margin-top: 5px;
      }
    }
  }

  .progress {
    padding-bottom: 16px;
    .progress-item {
      margin-top: 8px;
      padding: 16px;
      padding-right: 0;
      background: #ffffff;
      box-shadow: 0px 0px 24px -10px #dbdee6;
      border-radius: 8px;

      &.empty {
        height: 16px;
      }
      .rates {
        padding-top: 29px;
        height: 50px;
        display: flex;
        box-sizing: border-box;
        overflow-x: scroll;
        overflow-y: hidden;
        white-space: nowrap;
        position: relative;

        .progress-name {
          position: absolute;
          top: -1px;
          height: 18px;
          font-size: 13px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #262626;
          line-height: 18px;
        }

        .rate-item {
          flex-shrink: 0;
          width: 123px;
          height: 22px;
          margin-right: 20px;
          background: $progress-undone-color;
          position: relative;
          font-size: 12px;
          .rate-total {
            line-height: 22px;

            display: flex;
            justify-content: space-between;
            padding-left: 6px;
            .title,
            .number {
              z-index: 5;
            }
            .number {
              padding-right: 3px;
              color: #8a909f;
            }
            &::before {
              content: "";
              height: 0;
              display: block;
              position: absolute;
              left: -12px;
              border: 11px solid $progress-undone-color;
              border-left-width: 6px;
              border-right-width: 6px;
              border-left-color: transparent;
            }
            &::after {
              content: "";
              display: block;
              position: absolute;
              top: 0;
              right: -11.5px;
              border: 11px solid $progress-undone-color;
              border-left-width: 6px;
              border-right-width: 6px;
              border-top-color: transparent;
              border-right-color: transparent;
              border-bottom-color: transparent;
            }
          }
          .rate-current {
            position: absolute;
            height: 22px;
            display: flex;
            justify-content: center;
            top: 0;
            background: $progress-done-color;
            &::before {
              content: "";
              height: 0;
              display: block;
              position: absolute;
              left: -11.5px;
              border: 12px solid $progress-done-color;
              border-left-width: 6px;
              border-right-width: 6px;
              border-left-color: transparent;
            }
            &::after {
              content: "";
              display: block;
              position: absolute;
              top: -0.5px;
              right: -17.25px;
              border: 12px solid transparent;
              border-left-width: 6px;
              border-left-color: $progress-done-color;
            }
            &.empty::after {
              content: none;
            }
            &.empty::before {
              border-right-color: $progress-undone-color;
              border-top-color: $progress-undone-color;
              border-bottom-color: $progress-undone-color;
            }
          }
        }
      }
    }
  }
  .checks {
    margin-bottom: 16px;
    .checks-status-tags {
      display: flex;
      .progress-tag {
        height: 24px;
        background: #eceef2;
        border-radius: 4px;
        color: #4d525c;
        font-size: 13px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        border-radius: 4px;
        margin-right: 12px;
        margin-top: 8px;
        padding: 3px 8px;
        display: flex;
        align-items: center;
        &.active {
          background: #ffffff;
          color: #3972f9;
        }
      }
    }
    .check-item {
      margin-top: 8px;
      padding: 16px;

      border-radius: 16px;
      background: url(../../../assets/card-border-bg.png);
      background-position: bottom;
      background-size: contain;
      box-shadow: 0px 0px 24px -10px #dbdee6;
      .title {
        height: 20px;
        font-size: 14px;
        font-weight: 400;
        color: #262626;
        line-height: 20px;
      }
      .countdown {
        display: flex;
        align-items: center;
        line-height: 20px;
        > .icon-alarm-line {
          height: 22px;
          //   width: 14px;
          margin-right: 4px;
        }
        margin-top: 12px;
        height: 16px;
        font-size: 12px;
        font-weight: 400;
        color: #8a909f;
        > .text {
          color: #f5222d;
        }
      }
      .checker {
        margin-top: 10px;
        height: 16px;
        font-size: 12px;
        font-weight: 400;
        color: #8a909f;
        line-height: 16px;
        .tag {
          width: 28px;
          height: 16px;
          background: #f6f7f9;
          border-radius: 4px;
          padding: 2px 4px;
          font-size: 10px;
        }
        .checker-name {
          margin-right: 12px;
        }
      }
      .line {
        width: 343px;
        height: 1px;
        margin: 12px 0;
        background: #f6f7f9;
      }
      .count-process {
        height: 4px;
        border-radius: 4px;
        width: 100%;
        overflow: hidden;
        position: relative;

        .waiting {
          height: 100%;
          width: 84%;
          z-index: 3;
          position: absolute;
          background: #dbdee6;
          border-radius: 4px;
          border-right: 1px solid #ffffff;
        }
        .modifing {
          height: 100%;
          position: absolute;
          border-radius: 4px;
          width: 88%;
          z-index: 2;
          background: #ff7875;
          border-right: 1px solid #ffffff;
        }
        .checked {
          height: 100%;
          width: 100%;
          z-index: 1;
          position: absolute;
          background: #3dd1af;
          border-radius: 4px;
        }
      }
      .count-number {
        display: flex;
        margin-top: 10px;
        justify-content: space-between;
        .left {
          height: 16px;
          font-size: 12px;
          font-weight: 400;
          color: #262626;
          line-height: 16px;
          display: flex;
          .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            margin-right: 5px;
          }
          .count-waiting,
          .count-modifing,
          .count-checked {
            display: flex;
            align-items: center;
            margin-right: 12px;
          }
        }
        .right {
          height: 16px;
          font-size: 12px;
          font-weight: 400;
          color: #8a909f;
          line-height: 16px;
        }
      }
    }
  }

  .uploads {
    border-radius: 8px;
    background: #ffffff;
    margin-top: 8px;
    padding: 0 16px;
    margin-bottom: 10px;
    .attachment {
      display: flex;
      height: 68px;
      align-items: center;
      .left {
        display: flex;
        align-items: center;
        width: 39px;
        span {
          margin-right: 7px;
          font-size: 32px;
          // height: 32px;
          // width: 32px;
        }
      }
      .right {
        width: calc(100% - 39px);
        > .name {
          height: 20px;
          color: #262626;
          font-weight: 400;
          font-size: 14px;
          line-height: 20px;
        }
        > .username {
          font-weight: 400;
          margin-top: 4px;
          font-size: 12px;
          height: 20px;
          line-height: 16px;
          color: #8a909f;
        }
      }
    }
  }
}
